﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link href="${root!}/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="${root!}/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="${root!}/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="${root!}/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
<script src="${root!}/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
<script src="${root!}/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="${root!}/lib/ligerUI/js/plugins/ligerForm.js"></script>
<script src="${root!}/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
<script src="${root!}/lib/jquery-validation/jquery.validate.min.js"></script>
<script src="${root!}/lib/jquery-validation/jquery.metadata.js" type="text/javascript"></script>
<script src="${root!}/lib/jquery-validation/messages_cn.js" type="text/javascript"></script>
<script src="${root!}/lib/js/orders.js"></script>
<script> 
var f = null;
var groupicon = "${root!}/lib/ligerUI/skins/icons/communication.gif";
$(function ()
{
	//<!--工具栏-->
	$("#toptoolbar").ligerToolBar({ 
		items: [
			{ text: '保存', click: f_Save,icon:'save'},
			{ line:true }		
		]});
	
	//<!--Form-->
	f = $("#form1").ligerForm({
		 inputWidth: 200, labelWidth: 90, space: 80,validate:{},
		 fields: [
		 { display: "旧密码", name: "password", newline: true, type: "password" , validate:{required:true},group: "密码修改",groupicon: groupicon},		
		 { display: "新密码", name: "newpassword", newline: true, type: "password" ,validate:{required:true}},
		 { display: "重复新密码", name: "repassword", newline: true, type: "password", validate:{required:true}}
		 ]
	}); 
});


//<!--保存-->
function f_Save()
{
	if (f.valid()) {
		do_ajaxSubmit1('','form1','${root!}/sys/sysUser/password');
	}else {
		f.showInvalid();
	}
}

</script>
</head>
<body>
<!--工具栏-->
<div id="toptoolbar" style="padding:3px; overflow:hidden;" ></div>
<!--form-->
<form id="form1"></form>
</body>
</html>
